import java.util.Date;

public class Employee {
    private int id;
    private String name;
    private int age;
    private String job;
    private double salary;
    // 入职时间
    private Date time;
//    // 离职时间
//    private Date outTime;

    @Override
    public String toString() {
        return "员工信息：{id=" + id +
                ", 姓名=" + name +
                ", 年龄=" + age +
                ", 职位=" + job +
                ", 薪水=" + salary +
                ", 入职时间=" + time +
                "}";
    }

    public Employee(int id, String name, int age, String job, double salary, Date time) {
        this.id = id;
        this.name = name;
        this.age = age;
        this.job = job;
        this.salary = salary;
        this.time = time;
    }
    public Employee() {

    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getJob() {
        return job;
    }

    public void setJob(String job) {
        this.job = job;
    }

    public double getSalary() {
        return salary;
    }

    public void setSalary(double salary) {
        this.salary = salary;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }
}
